package top.huxy.boot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huxy.boot.controller.admin.AdminBackgroundImageController;
import top.huxy.boot.model.entity.BackgroundImage;
import top.huxy.boot.model.vo.user.VO_VariousBg;

import java.util.List;

/**
 * @author HuXY
 * @since 2022-01-06 10:01:13
 */
@Mapper
@Repository
public interface BackgroundImageMapper {

    List<BackgroundImage> getBgList();

    List<VO_VariousBg> getVOBgList();

    int addBg(BackgroundImage variousBg);

    int updateBg(AdminBackgroundImageController.Bg bg);

    int delBg(String id);

    Integer getBgCount();

    String getBgSrcByIndex(int index);

    String getBgSrcById(String id);
}
